#ifndef SKILLBUTTON_H
#define SKILLBUTTON_H
#include <QGraphicsObject>
#include "pskilldialog.h"
#include "shopdialog.h"
#include "player.h"

class SkillButton : public QGraphicsObject
{
    Q_OBJECT
public:
    explicit SkillButton(QGraphicsObject *parent = 0);
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);

    QRectF boundingRect() const;
    void access();
    virtual QString name() = 0;
    player* _Player;
protected:
    void mousePressEvent(QGraphicsSceneMouseEvent *event);
    void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
    int _x, _y;
    pskilldialog* skillDialog;
signals:
    void pressed(SkillButton*);
protected slots:
    void startAskill(SkillButton*);
};

class YellowSkillButton : public SkillButton
{
    Q_OBJECT
public:
    YellowSkillButton(QGraphicsObject *parent = 0, player* pl=0,int x = 0, int y = 0);
    QString name();
protected:
protected slots:
};

#endif // SKILLBUTTON_H
